package com.anrongtec.zcpt.module;

import java.io.Serializable;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

/**
 * 分类item
 * 
 * @author cxy
 *
 */
public class Type implements Serializable {
	private static final String VALUE = "val";
	/** 名称 */
	@Expose()
	private String name;

	/** 值 */
	@SerializedName(VALUE)
	@Expose()
	private String value;
	@SerializedName("parentName")
	@Expose
	private String parentName;
	@SerializedName("parentVal")
	@Expose
	private String parentValue;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public String getParentValue() {
		return parentValue;
	}

	public void setParentValue(String parentValue) {
		this.parentValue = parentValue;
	}

	public boolean equals(Type other) {
		if (other.getValue().equals(value)) {
			return true;
		}
		return false;
	}

}
